package com.czbank.financing.service.impl;

import com.czbank.financing.Entity.Manipulate;
import com.czbank.financing.mapper.ManipulateMapper;
import com.czbank.financing.service.ManipulateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ManipulateServiceImpl implements ManipulateService {

    @Autowired
    private ManipulateMapper manipulateMapper;


    @Override
    public Manipulate selectManipulateById(long id) {

        return manipulateMapper.selectManipulateById(id);
    }

    @Override
    public List<Manipulate> allManipulate() {

        return manipulateMapper.allManipulate();
    }

    @Override
    public int InsertManipulate(String manipulateName, String manipulateDescribe, Date creationtime) {
        return manipulateMapper.InsertManipulate(manipulateName,manipulateDescribe ,creationtime );
    }
}
